# locust777
 
//函数练习23

#include<stdio.h>
#include<windows.h>
int main()
{
	int Max(int x,int y);
	int Add(int x,int y);
	void change(int* x,int* y);
	int a = 0;int b = 0;
	scanf("%d%d",&a,&b);
	printf("操作前:a = %d,b = %d\n",a,b);
	printf("较大的是:%d\n",Max(a,b));
	printf("相加是:%d\n",Add(a,b));
	change(&a,&b);
	printf("交换后：a = %d,b = %d\n",a,b);

system("pause");
return 0;
}

int Max(int x,int y)
{
return (x>y)?x:y;
}

int Add(int x,int y)
{
return x+y;
}

void change(int* x,int* y)
{
int tmp = *x;
*x = *y;
*y = tmp;
}
